#include "texteditwin.h"
#include "../winsys.h"
#include "../scintilla/Scintilla.h"

CEditWindow::CEditWindow(CWindow* parent, int ControlID) {
	HWND hWnd = CreateWindowEx(0, "Scintilla", TEXT(""), 
		ES_MULTILINE | WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_CLIPCHILDREN | WS_VSCROLL,
		0, 0, 100, 100, parent->GetHWND(), (HMENU)ControlID, g_hInstance, NULL);

	SetHWND(hWnd);

	SendMessage(hWnd, SCI_SETMARGINWIDTHN, 0, 32);
	SendMessage(hWnd, SCI_SETMARGINWIDTHN, 1, 0);
}

CEditWindow::~CEditWindow() { }
